import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/ruoyi";

// 获取转发配置列表
export function getDataTransmitList(data) {
    return request({
        url: '/alm/data_transmit/list',
        method: 'post',
        data: data
    })
}

// 新增转发配置信息
export function addDataTransmitConfig(data) {
    return request({
        url: '/alm/data_transmit/add',
        method: 'post',
        data: data
    })
}

// 编辑转发配置信息
export function editDataTransmitConfig(data) {
    return request({
        url: '/alm/data_transmit/edit',
        method: 'post',
        data: data
    })
}

// 获取详情
export function getDetail(id) {
    return request({
        url: '/alm/data_transmit/detail/' + id,
        method: 'get'
    })
}

// 删除转发配置信息
export function delDataTransmitConfig(id) {
    return request({
        url: '/alm/data_transmit/del/' + id,
        method: 'delete'
    })
}

// 修改启用状态
export function changeEnabledStatus(data) {
    return request({
        url: '/alm/data_transmit/change_enabled_status',
        method: 'post',
        data: data
    })
}
